package com.cm.springcloud.service.controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.cm.springcloud.service.vo.SimpleVo;
@RestController
public class Service2SimpleController {
	
	@RequestMapping("req1")
	public String f1(String p1) {
		return p1;
	}
	
	@RequestMapping("req2")
	public SimpleVo f2(@RequestBody SimpleVo simpleVo) {
		return simpleVo;
	}
}
